#import <Foundation/Foundation.h>
#import "Celltower.h"
#import "GeoPoint.h"
#import "Location.h"
int main() {

	NSAutoreleasePool *autoreleasePool = [ [ NSAutoreleasePool alloc ] init ];

	printf("iPhone Cell Stumbler\n");
	int i;
	Location *loc = [[Location alloc] init];
	NSArray *l = [loc getLocation];
	NSLog(@"Got the towers %d",[l count]);
	for (i=0;i<[l count];i++){
		CellTower *t = [l objectAtIndex:i];
		NSLog(@"Tower %d %d",[t towerId],[t towerLoc]);	
	}	

	GeoPoint *g = getBestTower();
	NSLog(@"%f %f", [g latitude], [g longitude]);
	[ autoreleasePool release ];
	return 0;
}

